(function (g) {
  function b(h) { return new RegExp("(^|\\s+)" + h + "(\\s+|$)") } var d, a, e;
  if ("classList" in document.documentElement) {
    d = function (i, h) { return i.classList.contains(h) };
    a = function (i, h) { i.classList.add(h) };
    e = function (i, h) { i.classList.remove(h) }
  } else {
    d = function (i, h) { return b(h).test(i.className) };
    a = function (i, h) { if (!d(i, h)) { i.className = i.className + " " + h } };
    e = function (i, h) { i.className = i.className.replace(b(h), " ") }
  } function f(i, h) {
    var j = d(i, h) ? e : a;
    j(i, h)
  } var c = { hasClass: d, addClass: a, removeClass: e, toggleClass: f, has: d, add: a, remove: e, toggle: f };
  if (typeof define === "function" && define.amd) { define(c) } else { g.form = c }
})(window);
(function () {
  if (!String.prototype.trim) {
    (function () {
      var c = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
      String.prototype.trim = function () { return this.replace(c, "") }
    })()
  } [].slice.call(document.querySelectorAll("input.temp_input_field")).forEach(function (c) {
    if (c.value.trim() !== "") { form.add(c.parentNode, "input--filled") } c.addEventListener("focus", b);
    c.addEventListener("blur", a)
  });
  [].slice.call(document.querySelectorAll("textarea.temp_input_field")).forEach(function (c) {
    if (c.value.trim() !== "") { form.add(c.parentNode, "input--filled") } c.addEventListener("focus", b);
    c.addEventListener("blur", a)
  });
  function b(c) { form.add(c.target.parentNode, "input--filled") } function a(c) { if (c.target.value.trim() === "") { form.remove(c.target.parentNode, "input--filled") } }
})();
$(".temp-setting").click(function () {
  $(".temp-change-setting-wrap").toggleClass("active");
  $(".temp-font-submenu-list li").click(function () {
    var b = $(this).attr("data-font");
    $("body").css("font-family", b)
  })
});
$(document).ready(function () {
  $(".temp-main-font-family-list").click(function () { $(".temp-font-submenu-list").slideToggle("slow") });
  $(".temp-list").click(function () {
    $(".temp-list").removeClass("hide_class");
    var a = $(this).children("a").html();
    $(document).find("#temp-menu").text(a);
    $(this).addClass("hide_class")
  })
});
$(document).on("click", ".temp-color-radio-btn", function () {
  var a = $(this).attr("data-color1");
  var b = $(this).attr("data-color2");
  $(".temp-custom-navigation").css("background", a);
  $(".temp-custom-modal-content .temp-custom-modal-body .temp-login-form-wrapper .temp-form-column-wrap h2").css("color", a);
  $(".temp-popup-form-wrapper .temp-content-wrapper h1").css("text-shadow", "2px", "2px", "2px", a);
  $(".temp-span-wrap .temp_input_label::after").css("background", a);
  $(".temp-form-button").css("background", a, "important");
  $(".temp-span-wrap .temp_input_label .temp_input_label-content").css("color", b);
  $(".temp-custom-radio-button .temp-radio-checkmark").css("background", b);
  $(".temp-custom-radio-button input:checked ~ .temp-radio-checkmark").css("background", a);
  $(".temp-popup-form-wrapper .temp-content-wrapper .temp-change-setting-wrap .temp-setting-wrapper .temp-font-family .temp-main-font-family-list .temp-font-menu .temp-font-submenu-list").css("background", b);
  $(".temp-setting").css("border-color", a);
  $(".temp-font-menu").css("border-color", a);
  $(".temp-custom-select").css("border-bottom-color", a, "important");
  $(".temp-checkbox-wrap .checkmark").css("background", a);
  $(".temp-checkbox-wrap").css("color", a);
  $(".temp-custom-modal-content .temp-custom-modal-body .temp-login-form-wrapper .temp-form-column-wrap .custom-form-label2 a").css("color", a);
  $("select").css("color", b, "important");
  $(".temp-custom-modal-content .temp-custom-modal-body .temp-login-form-wrapper .temp-form-column-wrap.temp-subscribe-form-column-wrap .temp-radio-button-subscribe").css("color", a);
  $(".temp-popup-form-wrapper .temp-custom-navigation .temp-custom-list-items li a").hover(function () { $(this).css("background-color", b, "important") }, function () { $(this).css("background-color", "") });
  $(".temp-popup-form-wrapper .temp-content-wrapper .temp-change-setting-wrap .temp-setting-wrapper .temp-font-family .temp-main-font-family-list .temp-font-menu .temp-font-submenu-list li").hover(function () { $(this).css("background-color", a, "important") }, function () { $(this).css("background-color", "") })
});
$(".temp-radio-checkmark").on("click", function () {
  var a = $(this).attr("data-link_design");
  if (a == 1) {
    $(".temp-form-column-wrap-image").addClass("changed-one");
    $(".temp_input_label").addClass("changed-one");
    $(".temp-form-button").addClass("changed-one-btn")
  } else {
    if (a == 2) {
      $(".temp-form-column-wrap-image").addClass("changed-two");
      $(".temp_input_label").addClass("changed-two");
      $(".temp-form-button").addClass("changed-two-btn")
    } else {
      if (a == 3) {
        $(".temp-form-column-wrap-image").addClass("changed-three");
        $(".temp_input_label").addClass("changed-three");
        $(".temp-form-button").addClass("changed-three-btn")
      }
    }
  }
});
$(document).on("click", ".temp-image-radio-btn", function () {
  var a = $(this).attr("data-image1");
  $(".temp-popup-form-wrapper").css("background", a);
  $(".temp-popup-form-wrapper").css("background-size", "cover")
});
